package com.leon.alishop.model;

import java.util.Date;

public class AttrValInfo {
	
	private Integer id;
	
	private String valueName;
	
	private Integer taobaoId;
	
	private Integer valueType;
	
	private Integer attrId;
	
	private Date createDate;
	
	private Date modifyDate;
	

	public AttrValInfo() {
		super();
	}

	public AttrValInfo(Integer id, String valueName, Integer taobaoId,
			Integer valueType, Integer attrId, Date createDate, Date modifyDate) {
		super();
		this.id = id;
		this.valueName = valueName;
		this.taobaoId = taobaoId;
		this.valueType = valueType;
		this.attrId = attrId;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getValueName() {
		return valueName;
	}

	public void setValueName(String valueName) {
		this.valueName = valueName;
	}

	public Integer getTaobaoId() {
		return taobaoId;
	}

	public void setTaobaoId(Integer taobaoId) {
		this.taobaoId = taobaoId;
	}

	public Integer getValueType() {
		return valueType;
	}

	public void setValueType(Integer valueType) {
		this.valueType = valueType;
	}

	public Integer getAttrId() {
		return attrId;
	}

	public void setAttrId(Integer attrId) {
		this.attrId = attrId;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((attrId == null) ? 0 : attrId.hashCode());
		result = prime * result
				+ ((createDate == null) ? 0 : createDate.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((modifyDate == null) ? 0 : modifyDate.hashCode());
		result = prime * result
				+ ((taobaoId == null) ? 0 : taobaoId.hashCode());
		result = prime * result
				+ ((valueName == null) ? 0 : valueName.hashCode());
		result = prime * result
				+ ((valueType == null) ? 0 : valueType.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AttrValInfo other = (AttrValInfo) obj;
		if (attrId == null) {
			if (other.attrId != null)
				return false;
		} else if (!attrId.equals(other.attrId))
			return false;
		if (createDate == null) {
			if (other.createDate != null)
				return false;
		} else if (!createDate.equals(other.createDate))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (modifyDate == null) {
			if (other.modifyDate != null)
				return false;
		} else if (!modifyDate.equals(other.modifyDate))
			return false;
		if (taobaoId == null) {
			if (other.taobaoId != null)
				return false;
		} else if (!taobaoId.equals(other.taobaoId))
			return false;
		if (valueName == null) {
			if (other.valueName != null)
				return false;
		} else if (!valueName.equals(other.valueName))
			return false;
		if (valueType == null) {
			if (other.valueType != null)
				return false;
		} else if (!valueType.equals(other.valueType))
			return false;
		return true;
	}

}
